create api for testing